import { defineStore } from 'pinia';
import {ProjectDTO} from "../type/Report/ProjectDTO.ts";


export const useProjectStore = defineStore('user', {
    state: () => {
        const projectInfo : ProjectDTO<any> ={}

        return {projectInfo}
    },

    actions: {

        setUserInfo(newProjectInfo: ProjectDTO<any>) {
            this.projectInfo = newProjectInfo;
        },

        removeUserInfo() {
            this.projectInfo = {};
        }
    },
    persist:true


});
